package org.example.springaitest.service.Impl;

import org.example.springaitest.mapper.TransactionMapper;
import org.example.springaitest.service.TransactionService;
import org.springframework.stereotype.Service;

@Service
public class TransactionServiceImpl implements TransactionService {
    private final TransactionMapper transactionMapper;

    public TransactionServiceImpl(TransactionMapper transactionMapper) {
        this.transactionMapper = transactionMapper;
    }

    @Override
    public String getFinalStatus(String serialNo) {
        return transactionMapper.findStatusNameBySerialNo(serialNo);
    }
}
